deploy: Return staged deployment
authorColin Walters <walters@verbum.org>
Fri, 27 Apr 2018 19:33:02 +0000 (15:33 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 27 Apr 2018 19:41:19 +0000 (19:41 +0000)
commitcd17e364ae34c161641e8fe973fd1c11702a0d81
treed471422f4906f377b07c459649b228505c866b37
parent06d39efcb5ad52216a2a47b5eff71af82c0dae49
deploy: Return staged deployment

Today rpm-ostree has some code to run a "sanitycheck" on a deployment.
I had initially deleted that when adapting it to use the staging code,
but I realized it should work fine; we just won't see the merged
config, but that's OK.

When I readded that code it started crashing because we didn't
actually return the new deployment object.  We'll gain some coverage
here as I'll land the code to have rpm-ostree use staging, then bump
the rpm-ostree tests here.

Closes: #1559
Approved by: jlebon
src/libostree/ostree-sysroot-deploy.c
src/ostree/ot-admin-builtin-deploy.c